package com.eastjet.maintenance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 运行记录表
 * @TableName basic_information
 */
@TableName(value ="basic_information")
@Data
public class BasicInformation implements Serializable {
    /**
     * 主键编号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 单据编号
     */
    private String documentNumber;

    /**
     * 单据日期
     */
    private Date theDate;

    /**
     * 登记人外键
     */
    private Integer registrants;

    /**
     * 所在部门外键
     */
    private Integer department;

    /**
     * 设备名称
     */
    private String name;

    /**
     * 设备编号
     */
    private String deviceNumber;

    /**
     * 设备类型
     */
    private String deviceType;

    /**
     * 规格型号
     */
    private String specificationsModels;

    /**
     * 存放位置
     */
    private String storageLocation;

    /**
     * 使用部门
     */
    private String useDepartments;

    /**
     * 设备开机人
     */
    private String poweredOnby;

    /**
     * 设备关机人
     */
    private String shutdownPerson;

    /**
     * 开机时间
     */
    private Date bootTime;

    /**
     * 关机时间
     */
    private Date shutdownTime;

    /**
     * 累计运行时长(h)
     */
    private BigDecimal runningTime;

    /**
     * 停机时长(h)
     */
    private BigDecimal downtime;

    /**
     * 实际运行时长(h)
     */
    private BigDecimal actualTime;

    /**
     * 计划运行时长(h)
     */
    private BigDecimal scheduled;

    /**
     * 生产班组
     */
    private String productionCrews;

    /**
     * 班次时间
     */
    private String shiftTimes;

    /**
     * 生产日期
     */
    private Date dateofManufacture;

    /**
     * 生产产品
     */
    private String products;

    /**
     * 生产总数量
     */
    private Integer total;

    /**
     * 合格数量
     */
    private Integer theNumber;

    /**
     * 不合格数量
     */
    private Integer unqualified;

    /**
     * 合格率
     */
    private BigDecimal rate;

    /**
     * 理想速度(件/h)
     */
    private BigDecimal speed;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private Date creationTime;

    /**
     * 更新人
     */
    private String updater;

    /**
     * 更新时间
     */
    private Date updated;

    /**
     * 逻辑删除
     */
    private Integer tombstone;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BasicInformation other = (BasicInformation) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDocumentNumber() == null ? other.getDocumentNumber() == null : this.getDocumentNumber().equals(other.getDocumentNumber()))
            && (this.getTheDate() == null ? other.getTheDate() == null : this.getTheDate().equals(other.getTheDate()))
            && (this.getRegistrants() == null ? other.getRegistrants() == null : this.getRegistrants().equals(other.getRegistrants()))
            && (this.getDepartment() == null ? other.getDepartment() == null : this.getDepartment().equals(other.getDepartment()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getDeviceNumber() == null ? other.getDeviceNumber() == null : this.getDeviceNumber().equals(other.getDeviceNumber()))
            && (this.getDeviceType() == null ? other.getDeviceType() == null : this.getDeviceType().equals(other.getDeviceType()))
            && (this.getSpecificationsModels() == null ? other.getSpecificationsModels() == null : this.getSpecificationsModels().equals(other.getSpecificationsModels()))
            && (this.getStorageLocation() == null ? other.getStorageLocation() == null : this.getStorageLocation().equals(other.getStorageLocation()))
            && (this.getUseDepartments() == null ? other.getUseDepartments() == null : this.getUseDepartments().equals(other.getUseDepartments()))
            && (this.getPoweredOnby() == null ? other.getPoweredOnby() == null : this.getPoweredOnby().equals(other.getPoweredOnby()))
            && (this.getShutdownPerson() == null ? other.getShutdownPerson() == null : this.getShutdownPerson().equals(other.getShutdownPerson()))
            && (this.getBootTime() == null ? other.getBootTime() == null : this.getBootTime().equals(other.getBootTime()))
            && (this.getShutdownTime() == null ? other.getShutdownTime() == null : this.getShutdownTime().equals(other.getShutdownTime()))
            && (this.getRunningTime() == null ? other.getRunningTime() == null : this.getRunningTime().equals(other.getRunningTime()))
            && (this.getDowntime() == null ? other.getDowntime() == null : this.getDowntime().equals(other.getDowntime()))
            && (this.getActualTime() == null ? other.getActualTime() == null : this.getActualTime().equals(other.getActualTime()))
            && (this.getScheduled() == null ? other.getScheduled() == null : this.getScheduled().equals(other.getScheduled()))
            && (this.getProductionCrews() == null ? other.getProductionCrews() == null : this.getProductionCrews().equals(other.getProductionCrews()))
            && (this.getShiftTimes() == null ? other.getShiftTimes() == null : this.getShiftTimes().equals(other.getShiftTimes()))
            && (this.getDateofManufacture() == null ? other.getDateofManufacture() == null : this.getDateofManufacture().equals(other.getDateofManufacture()))
            && (this.getProducts() == null ? other.getProducts() == null : this.getProducts().equals(other.getProducts()))
            && (this.getTotal() == null ? other.getTotal() == null : this.getTotal().equals(other.getTotal()))
            && (this.getTheNumber() == null ? other.getTheNumber() == null : this.getTheNumber().equals(other.getTheNumber()))
            && (this.getUnqualified() == null ? other.getUnqualified() == null : this.getUnqualified().equals(other.getUnqualified()))
            && (this.getRate() == null ? other.getRate() == null : this.getRate().equals(other.getRate()))
            && (this.getSpeed() == null ? other.getSpeed() == null : this.getSpeed().equals(other.getSpeed()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreatedBy() == null ? other.getCreatedBy() == null : this.getCreatedBy().equals(other.getCreatedBy()))
            && (this.getCreationTime() == null ? other.getCreationTime() == null : this.getCreationTime().equals(other.getCreationTime()))
            && (this.getUpdater() == null ? other.getUpdater() == null : this.getUpdater().equals(other.getUpdater()))
            && (this.getUpdated() == null ? other.getUpdated() == null : this.getUpdated().equals(other.getUpdated()))
            && (this.getTombstone() == null ? other.getTombstone() == null : this.getTombstone().equals(other.getTombstone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDocumentNumber() == null) ? 0 : getDocumentNumber().hashCode());
        result = prime * result + ((getTheDate() == null) ? 0 : getTheDate().hashCode());
        result = prime * result + ((getRegistrants() == null) ? 0 : getRegistrants().hashCode());
        result = prime * result + ((getDepartment() == null) ? 0 : getDepartment().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getDeviceNumber() == null) ? 0 : getDeviceNumber().hashCode());
        result = prime * result + ((getDeviceType() == null) ? 0 : getDeviceType().hashCode());
        result = prime * result + ((getSpecificationsModels() == null) ? 0 : getSpecificationsModels().hashCode());
        result = prime * result + ((getStorageLocation() == null) ? 0 : getStorageLocation().hashCode());
        result = prime * result + ((getUseDepartments() == null) ? 0 : getUseDepartments().hashCode());
        result = prime * result + ((getPoweredOnby() == null) ? 0 : getPoweredOnby().hashCode());
        result = prime * result + ((getShutdownPerson() == null) ? 0 : getShutdownPerson().hashCode());
        result = prime * result + ((getBootTime() == null) ? 0 : getBootTime().hashCode());
        result = prime * result + ((getShutdownTime() == null) ? 0 : getShutdownTime().hashCode());
        result = prime * result + ((getRunningTime() == null) ? 0 : getRunningTime().hashCode());
        result = prime * result + ((getDowntime() == null) ? 0 : getDowntime().hashCode());
        result = prime * result + ((getActualTime() == null) ? 0 : getActualTime().hashCode());
        result = prime * result + ((getScheduled() == null) ? 0 : getScheduled().hashCode());
        result = prime * result + ((getProductionCrews() == null) ? 0 : getProductionCrews().hashCode());
        result = prime * result + ((getShiftTimes() == null) ? 0 : getShiftTimes().hashCode());
        result = prime * result + ((getDateofManufacture() == null) ? 0 : getDateofManufacture().hashCode());
        result = prime * result + ((getProducts() == null) ? 0 : getProducts().hashCode());
        result = prime * result + ((getTotal() == null) ? 0 : getTotal().hashCode());
        result = prime * result + ((getTheNumber() == null) ? 0 : getTheNumber().hashCode());
        result = prime * result + ((getUnqualified() == null) ? 0 : getUnqualified().hashCode());
        result = prime * result + ((getRate() == null) ? 0 : getRate().hashCode());
        result = prime * result + ((getSpeed() == null) ? 0 : getSpeed().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
        result = prime * result + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
        result = prime * result + ((getUpdater() == null) ? 0 : getUpdater().hashCode());
        result = prime * result + ((getUpdated() == null) ? 0 : getUpdated().hashCode());
        result = prime * result + ((getTombstone() == null) ? 0 : getTombstone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", documentNumber=").append(documentNumber);
        sb.append(", theDate=").append(theDate);
        sb.append(", registrants=").append(registrants);
        sb.append(", department=").append(department);
        sb.append(", name=").append(name);
        sb.append(", deviceNumber=").append(deviceNumber);
        sb.append(", deviceType=").append(deviceType);
        sb.append(", specificationsModels=").append(specificationsModels);
        sb.append(", storageLocation=").append(storageLocation);
        sb.append(", useDepartments=").append(useDepartments);
        sb.append(", poweredOnby=").append(poweredOnby);
        sb.append(", shutdownPerson=").append(shutdownPerson);
        sb.append(", bootTime=").append(bootTime);
        sb.append(", shutdownTime=").append(shutdownTime);
        sb.append(", runningTime=").append(runningTime);
        sb.append(", downtime=").append(downtime);
        sb.append(", actualTime=").append(actualTime);
        sb.append(", scheduled=").append(scheduled);
        sb.append(", productionCrews=").append(productionCrews);
        sb.append(", shiftTimes=").append(shiftTimes);
        sb.append(", dateofManufacture=").append(dateofManufacture);
        sb.append(", products=").append(products);
        sb.append(", total=").append(total);
        sb.append(", theNumber=").append(theNumber);
        sb.append(", unqualified=").append(unqualified);
        sb.append(", rate=").append(rate);
        sb.append(", speed=").append(speed);
        sb.append(", remark=").append(remark);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", creationTime=").append(creationTime);
        sb.append(", updater=").append(updater);
        sb.append(", updated=").append(updated);
        sb.append(", tombstone=").append(tombstone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}